from mypackage.calculator import Calculator

if __name__ == "__main__":
    print("👉 调用普通实例方法:")
    calc = Calculator("MyCalc")
    result1 = calc.add(3, 5)

    print("\n👉 调用类方法:")
    calc2 = Calculator.create_default()

    print("\n👉 调用静态方法:")
    result3 = Calculator.multiply(4, 6)

    print("\n✅ 最终结果:")
    print(f"add(3,5) = {result1}")
    print(f"calc2.name = {calc2.name}")
    print(f"multiply(4,6) = {result3}")
